package com.uwlaser.service;

import com.uwlaser.base.CommonService;
import com.uwlaser.base.PageInfo;
import com.uwlaser.domain.FactoryTeamEmployee;
import com.uwlaser.service.dto.FactoryTeamEmployeeDto;
import com.uwlaser.service.dto.FactoryTeamEmployeeQueryParam;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
* @author huangpan
* @date 2022-12-02
*/
public interface FactoryTeamEmployeeService extends CommonService<FactoryTeamEmployee>  {

    static final String CACHE_KEY = "factoryTeamEmployee";

    /**
    * 查询数据分页
    * @param query 条件
    * @param pageable 分页参数
    * @return PageInfo<FactoryTeamEmployeeDto>
    */
    PageInfo<FactoryTeamEmployeeDto> queryAll(FactoryTeamEmployeeQueryParam query, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param query 条件参数
    * @return List<FactoryTeamEmployeeDto>
    */
    List<FactoryTeamEmployeeDto> queryAll(FactoryTeamEmployeeQueryParam query);

    FactoryTeamEmployee getById(Integer id);
    FactoryTeamEmployeeDto findById(Integer id);

    /**
     * 插入一条新数据。
     */
    int insert(FactoryTeamEmployeeDto resources);
    int updateById(FactoryTeamEmployeeDto resources);
    int removeById(Integer id);
    int removeByIds(Set<Integer> ids);
    /**
     * 获取没有绑定班组的人员
     */
    List<Map<String,String>> getUser();

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    // void download(List<FactoryTeamEmployeeDto> all, HttpServletResponse response) throws IOException;
}
